
public class Bed extends Resource{
	public int bedID;
	public int nurse;
	public boolean isCritical;
	public boolean isolation;
	
	public Bed(boolean status, int lastStatusChange, int totalBusyTime, int totalIdleTime, int nextDecisionPoint,
			int bedID, int nurse, boolean isCritical, boolean isolation) {
		super(status, lastStatusChange, totalBusyTime, totalIdleTime, nextDecisionPoint);
	}
	

	
	public boolean getIsCritical() {
		return isCritical;
	}
	
	public void setIsCritical(int bedid) {
		if(bedid == 12);
			this.isCritical = true;
		if (bedid == 13);
			this.isCritical = true;
		if (bedid == 14);
			this.isCritical = true;}
	
	public boolean getisolation() {
		return isolation;
	}
	
	public void setIsolation(int bedid) {
		if (bedid == 13)
			this.isolation = true;
		if (bedid == 14)
			this.isolation = true;
		if (bedid == 17)
			this.isolation = true;
		if (bedid == 18)
			this.isolation = true;
		if (bedid == 19)
			this.isolation = true;
	}


	public int getId() {
		return id;
	}

	public void setID(int id){
		this.bedID = id;
	}
	
	public int getNurse() {
		return nurse;
	}

	public void setNurse(int nrse){
		this.nurse = nrse;
	}
	

}

public class Bed extends Resource{
	public int bedid;
	public int nurse;
	public boolean isCritical;
	public boolean isolation;
	
//	public Bed(boolean status, int lastStatusChange, int totalBusyTime, int totalIdleTime, int nextDecisionPoint,
//			int bedID, int nurse, boolean isCritical, boolean isolation) {
//		super(status, lastStatusChange, totalBusyTime, totalIdleTime, nextDecisionPoint);
//	}
//	

	
	public boolean getIsCritical() {
		return isCritical;
	}
	
	public void setIsCritical(int bedid) {
		if(bedid == 12);
			this.isCritical = true;
		if (bedid == 13);
			this.isCritical = true;
		if (bedid == 14);
			this.isCritical = true;}
	
	public boolean getisolation() {
		return isolation;
	}
	
	public void setIsolation(int bedid) {
		if (bedid == 13)
			this.isolation = true;
		if (bedid == 14)
			this.isolation = true;
		if (bedid == 17)
			this.isolation = true;
		if (bedid == 18)
			this.isolation = true;
		if (bedid == 19)
			this.isolation = true;
	}


	public int getBedId() {
		return bedid;
	}

	public void setID(int id){
		this.bedID = id;
	}
	
	public int getNurse() {
		return nurse;
	}

	public void setNurse(int nrse){
		this.nurse = nrse;
	}
	

}
